package com.bluefish.bltuan.dao;

import java.util.List;

import com.bluefish.bltuan.module.Category;
import com.bluefish.bltuan.module.msg.Message;
import com.bluefish.bltuan.module.msg.MessageType;
import com.bluefish.bltuan.util.PageIndex;

public interface MsgDao extends AbstractDao<Message, Integer>{

	List<Message> listByType(MessageType type);
	
	int countByType(MessageType type);
	
	List<Message> listByType(MessageType type, PageIndex pageIndex);
	
	List<Message> listByType(MessageType type, int number);

	List<Message> listByTypeAndCity(PageIndex pageIndex, MessageType question,
			Category currentCity);
}
